﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="AdministratorAdd.aspx.cs" Inherits="web.admin.AdministratorAdd" 
    Title="活跃用户添加" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="SubMenu_Item" cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td class="Default_Item" id="TD1"><a id="listUrl" href="AdministratorList.aspx" runat="server">活跃用户列表</a></td>
                                <td class="Current_Item" id="TD2"><a id="addUrl" href="AdministratorAdd.aspx" runat="server">添加活跃用户</a></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>  
       
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
	        <tr>
	            <td>
	                <asp:Label ID="errorMsg" Visible="false" Text="" runat="server" ForeColor="red"/>
                    <asp:DetailsView ID="administatorInfo" runat="server" AutoGenerateRows="False" SkinID="orange" DataKeyNames="Id" 
                        DefaultMode="Insert"  OnDataBound="DataBound">
                        <Fields>                      
                            <asp:TemplateField HeaderText="用户名：" >
                                <InsertItemTemplate>
                                    <asp:TextBox ID="用户名" runat="server" TextMode="MultiLine" width="450" height="50" />
                                </InsertItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField>
                                 <InsertItemTemplate>
                                    <asp:Button ID="InsertButton" runat="server"  CausesValidation="True" Text="添加" OnClick="InsertButton_click"/> &nbsp;
                                    <asp:Button ID="InsertCancelButton" runat="server" CausesValidation="False" Text="取消" OnClick="CancelButton_click"/>
                                </InsertItemTemplate>
                            </asp:TemplateField>
                        </Fields>
                    </asp:DetailsView>
	            </td>
	        </tr> 	    
	    </tbody>
    </table>	
</asp:Content>
